l = [100,200,120,80,50,150,20,160,90,130]
i = 0 
bucket_list =[[] for i in range(len(l))]
for i in range(0,len(str(max(l)))):
    bucket_list =[[] for i in range(len(l))]
    for j in l:
        it = int(j / (10 ** i)) % 10
        bucket_list[it].append(j)
    l.clear()
    for x in bucket_list:  
        for y in x:
            l.append(y)

print(l)